*{box-sizing:border-box}
*:before,*:after{box-sizing: border-box;}
*{margin: 0;padding: 0;}
ul,ol{ list-style: none;}
body{background: #eeeeee;}/*1.只有红色区域变色(错),2.整个网页变色(对)*/
.globalHeader{
    margin:20px;
}

@media (min-width: 500px) {
    .globalHeader{
        margin: 60px 0 100px;
    }
}
a{color:inherit;text-decoration: none;}
img{max-width: 100%;max-height: 100%;}
.searchForm{
    display: flex;
    justify-content:space-between;
}
@media(min-width: 500px){/*500以下的像素我们不管*/
    .searchForm{
        max-width: 400px;/*会和上面自动合并*/
        margin-left: auto;
        margin-right: auto;
    }
}
/*@media(max-width:500px) {*/
/*    .searchForm{*/
/*        max-width: 400px;!*会和上面自动合并*!*/
/*    }*/
/*}*/
.searchForm>input{/*宽度自适应,所以先做布局*/
    width: 100%;
    margin-right: 10px;
    height: 40px;
    padding: 0 10px;
    border: none;
    border:1px solid #ddd;
    border-radius: 4px;
}
.searchForm>button{
    white-space: nowrap;
    padding: 0 27px;
    border: none;
    border-radius: 4px;
    background: #0282b9;
    color:white;
    font-size: 16px;
}
.globalMain{
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}
.siteList{
    display: flex;
    margin: 20px;
    flex-wrap: wrap;
    /*justify-content: space-between;*/
    /*border:1px solid red;*/
    justify-content: space-between;
}
@media(min-width:500px) {
    .siteList{
        margin-left: 0;
        margin-right: -25px;
        justify-content:flex-start;/*默认的覆盖上面*/
    }
}
.siteList>li{

    /*display: flex;*/
    /*margin-right: 25px;*/
    margin-bottom: 10px;
}
@media(min-width: 500px){
    .siteList>li{
        margin-right: 25px;
    }
}
.siteList .site{

    width:160px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background: white;
    border:1px solid #ddd;
    border-radius:4px;
    padding: 20px 0;
    /*height: 128px;*/
    position: relative;
    cursor: pointer;
}/*脱离层级的写法*/
.siteList .site >.logo{

    width:64px;
    height:64px;
    display: flex;
    justify-content: center;/*justify-content 用于设置或检索弹性盒子元素在主轴（横轴）方向上的对齐方式*/
    align-items: center;/*align-items 属性定义flex子项在flex容器的当前行的侧轴（纵轴）方向上的对齐方式。*/
    font-size: 64px;
    /*text-transform:uppercase;转为大写*/
}
.siteList .site >.link{
    font-size: 14px;
    margin-top: 4px;
}
.siteList .site >.close{
    position: absolute;
    right: 10px;
    top: 5px;
    display: none;
}
.siteList .site:hover >.close{
    display:block;
}
.siteList .addButton{
    border: 1px solid #ddd;
    background: white;
    width: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px 0;
    /*height: 128px;*/
}
.siteList .addButton .text{
    font-size: 14px;
    margin-top: 4px;
}
.siteList .addButton .icon{
    width: 56px;
    height: 56px;
}
.siteList .addButton .icon-Wrapper{
    width: 64px;
    height: 64px;
    display:flex;
    justify-content: center;
    align-items: center;
    /**/
}
